<!--
 * @Author: chunlai
 * @Date: 2025-07-16 10:32:53
 * @LastEditTime: 2025-09-10 17:34:58
 * @LastEditors: minsheng_insurance_agency_zhoucl
 * @FilePath: \02.bldinsure\src\views\index\feecount\RrwebIgnorePop.vue
 * @Description: 录屏忽略提示框
-->
<template>
  <div class="_mask rrweb-ignore">
    <div class="_modal">
      <div class="_modal-header">温馨提示</div>
      <div class="_modal-content" v-if="type == '1'">账户余额不足，请充值</div>
      <div class="_modal-content" v-else-if="type == '2'">
        请确认客户信息准确无误，否则影响后续投保流程
      </div>
      <div class="_modal-footer _act-btns">
        <span class="cancel" @click="$emit('close')">再看看</span>
        <span class="sure" @click="toRecharge" v-if="type == '1'">去充值</span>
        <span class="sure" @click="$emit('save')" v-else-if="type == '2'"
          >去请款</span
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "RrwebIgnorePop",
  components: {},
  data() {
    return {
      type: "1",
    };
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    initModal(type) {
      this.type = type;
    },
    toRecharge() {
      this.$store.dispatch("common/toBldRechargePage");
    },
  },
};
</script>
<style lang="less" scoped>
._mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;

  ._modal {
    width: 70%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;

    ._modal-header {
      height: 44px;
      line-height: 44px;
      font-size: 14px;
      padding: 0 10px;
      text-align: center;
      font-weight: 600;
      color: #242424;
      border-bottom: 3px solid #f1f1f1;
    }

    ._modal-content {
      padding: 10px;
      height: 140px;
      background: #fff;
      font-size: 14px;
      color: #333;
      line-height: 1.5;
    }
    ._act-btns {
      display: flex;
      align-items: center;
      width: 100%;
      height: 40px;
      border-top: 1px solid #ebedf0;
      .cancel {
        flex: 1;
        line-height: 40px;
        text-align: center;
        color: #999999;
        position: relative;
        &::after {
          content: "";
          position: absolute;
          top: 0;
          bottom: 0;
          right: 0;
          margin: auto;
          width: 1px;
          height: 90%;
          background-color: #ebedf0;
        }
      }
      .sure {
        flex: 1;
        line-height: 40px;
        text-align: center;
        color: #f54040;
      }
    }
  }
}
</style>
